package com.huang.auth.converter;

import com.huang.auth.entity.to.LoginTO;
import com.huang.auth.entity.vo.LoginVO;

/**
 * @author HuangShen
 * @Description
 * @create 2021-09-25 21:49
 */
public class LoginVOConverter {

    public static LoginVO loginTO(LoginTO loginTO) {
        return LoginVO.builder()
                .access_token(loginTO.getToken())
                .refresh_token(loginTO.getRefreshToken())
                .expires_in(loginTO.getExpires_in())
                .build();
    }
}
